package com.yf.book.modules.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yf.book.modules.book.entity.UserBook;
import com.yf.repo.modules.qu.entity.Qu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* <p>
* 错题本Mapper
* </p>
*
* @author 聪明笨狗
* @since 2020-05-27 17:56
*/
public interface UserBookMapper extends BaseMapper<UserBook> {

    /**
     * 查找错题用于训练准备
     * @param examId
     * @param userId
     * @return
     */
    List<Qu> listForTrain(@Param("examId") String examId, @Param("userId") String userId);
}
